<?php
namespace Components\User\Sha\Mutually\Buy;

class AverageModel extends \Phalcon\Mvc\Model {
  public function initialize() {
    $this -> belongsTo('user_mutually_buy_id', __namespace__ . '\\Model', 'id', [
      'alias' => 'UserMutuallyBuy'
    ]);

    $this -> hasOne('user_mutually_sell_average_id', \Components\User\Sha\Mutually\Sell\Model::class, 'id', [
      'alias' => 'UserMutuallySellAverage'
    ]);
  }

  public function getSource() {
    return 'user_mutually_buy_average';
  }
}
